<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>贴吧问答</title>
    <link rel="stylesheet" href="/public/css/bootstrap.min.css">
</head>
<body>
<div class="panel panel-default">
    <ul class="breadcrumb">
        <li><a href="/login">登录</a></li>
        <li><a href="/add">注册</a></li>
    </ul>
    <div class="panel-body">
        <ul class="nav nav-tabs">
            <li class="active"><a href="/main">问题列表</a></li>
            <li><a href="/ask">我要发问</a></li>

        </ul>
        <table class="table">
            <thead>
            <tr>
                <th>编号</th>
                <th>问题</th>
                <th>评论</th>
                <th>删除</th>
            </tr>
            </thead>
            <tbody>
            {{each commentList}}
            <tr>

                <td>{{$value.id}}</td>
                <td>{{$value.content}}</td>
                <td>
                    <a href="/comment?id={{$value.id}}">评论</a>
                </td>
                <td>
                    <a href="/delete?id={{$value.id}}">删除</a>
                </td>
            </tr>
            {{/each}}
            </tbody>
        </table>
    </div>
</div>


</body>
</html>
